<template>
	<wd-status-tip v-if="list.length === 0" image="content" tip="暂无内容" />
	<view v-else class="load-wrap">
		<text v-if="status == 'loading'">正在加载...</text>
		<text v-else-if="status == 'more'">加载更多</text>
		<text v-else-if="status == 'nomore'">没有更多了</text>
	</view>
</template>

<script setup>
// 定义props
const props = defineProps({
	list: {
		type: Array,
		default: () => []
	},
	status: {
		type: String,
		default: 'loading'
	}
});
</script>

<style lang="scss" scoped>
.load-wrap {
	color: #999;
	text-align: center;
	font-size: 28rpx;
}
</style>
